import request from '@/utils/request'

// 查询客户列表
export function listUser(query) {
  return request({
    url: '/custom/user/list',
    method: 'get',
    params: query
  })
}

// 查询客户列表
export function listCustomUser(query) {
  return request({
    url: '/custom/user/list',
    method: 'get',
    params: query
  })
}

// 查询客户详细
export function getUser(customId) {
  return request({
    url: '/custom/user/' + customId,
    method: 'get'
  })
}

// 新增客户
export function addUser(data) {
  return request({
    url: '/custom/user',
    method: 'post',
    data: data
  })
}

// 修改客户
export function updateUser(data) {
  return request({
    url: '/custom/user',
    method: 'put',
    data: data
  })
}

// 删除客户
export function delUser(customId) {
  return request({
    url: '/custom/user/' + customId,
    method: 'delete'
  })
}

// 导出客户
export function exportUser(query) {
  return request({
    url: '/custom/user/export',
    method: 'get',
    params: query
  })
}
